let user = {
    name: 'Ted',
    greeting() {
        //模板插入数据
        console.log(`Hello, I'm ${this.name}.`);
    }
};
user.greeting();  // Hello, I'm Ted.

//模板可以跨行
let greeting = `Hello, I'm ${user.name}. 
Welcome to the team!`; 
console.log(greeting);  // Hello, I'm Ted.
                        // Welcome to the team!

//模板跨行保留所有空格
let greeting2 = `Hello, I'm ${user.name}. 
                Welcome to the team!`; 
console.log(greeting2); // Hello, I'm Ted. 
                        //                Welcome to the team!
